#include "plugin_api.h"
#include <iostream>

class MyPlugin : public PluginBase {
public:
    std::string name() const override { return "MyPlugin"; }
    void run() override { std::cout << "plugin running\n"; }
};

extern "C" PluginBase* create()
{
    return new MyPlugin();
}

extern "C" void destroy(PluginBase* p)
{
    delete p;
}
